#ifndef __logwriter_h_
#define __logwriter_h_

#include <fstream>
#include <iostream> 
#include <string>
#include <sstream>
#include "tinyxml.h"

using namespace std;

class logwriter
{
public:
	logwriter(string filename, string logName, bool appendIfExists);
	logwriter(string filename);
	logwriter(void);
	void close(void);
	void writeEntry(string entryName);
	void writeEntry(string entryName, string value);
	void writeEntry(string entryName, float value);
	void writeEntry(string entryName, float value1, float value2, float value3);
	void writeEntry(string entryName, float value1, float value2, float value3, float value4);
private:
	string filePath;
	TiXmlDocument doc;
	TiXmlElement *root;
};

#endif // #ifndef __logwriter_h_
